package cn.edu.scau.cmi.zhangmingxing.adapter;

import java.util.ArrayList;
import java.util.List;

public class SortUtil {
	public void sortInteger(ArrayList<Integer> studentNumber) {
		int i,j,k;
		for(i=0;i<studentNumber.size();i++) {
			k=i;
			for(j=i;j<studentNumber.size();j++) {
				if((int)studentNumber.get(j)<(int)studentNumber.get(k)) {
					k=j;
				}
			}
			if(k!=i) {
				j=(int)studentNumber.get(k);
				studentNumber.set(k,studentNumber.get(i) );
				studentNumber.set(i, j);
			}
		}
		
	}

}
